Skip to content

chore: fix fetching files in speech to text controller #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jakmro
Copy link
Member

@jakmro jakmro commented May 8, 2025

Description

  1. Change fetching files in speech to text controller.
  2. Use tokenizerModule in speech to text controller.
  3. Fix speechToText demo app. Add microphone permissions and rebuild the ios folder.
  4. Rebuild android folder

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improves or adds clarity to existing documentation)

Tested on

  • iOS
  • Android

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

@jakmro jakmro requested review from mkopcins and chmjkb May 8, 2025 15:44
@pweglik pweglik self-requested a review May 14, 2025 12:03
Copy link
Collaborator

@pweglik pweglik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove development artifacts

@jakmro jakmro requested a review from pweglik May 14, 2025 12:18
@jakmro jakmro requested a review from pweglik May 15, 2025 12:28
Copy link
Collaborator

@pweglik pweglik May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it now, but in future try not to include irrelevant changes like this caused by rebuilds that has nothing to do with changes mentioned in PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the relevant changes were actually autogenerated (build)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, changes in permissions can be autogenerated, but I see no reason to include formatting changes in kotlin in this PR. I'm not even sure why is this happening - it should have been properly formatted after expo update along with other files.
Anyway, I think these kind of changes should be limited to PRs related to bumping version of dependencies etc

Comment on lines +80 to +94
if (Platform.OS === 'android') {
const permission = await PermissionsAndroid.check(
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
);
if (!permission) {
const granted = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO
);
if (granted !== PermissionsAndroid.RESULTS.GRANTED) {
console.log('Microphone permission denied');
return;
}
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not asking for permission on ios?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it's handled automatically

@jakmro jakmro requested a review from pweglik May 16, 2025 11:37
@jakmro jakmro merged commit ba83046 into v0.4.0-rc1 May 16, 2025
@jakmro jakmro deleted the @jakmro/fix-fetching-files-in-SpeechToTextController branch May 16, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants